package com.xb.loan.cashier.biz.pay.wechat;

/**
 微信支付常量信息
 */
public interface WeChatConst {
    
    /**
     * 微信交易的编码规则
     */
    public final static String TRADE_CHARSET_UTF8 = "UTF-8";
    
    /**
     * 微信交易常量配置
     */
    public final static String TRADE_SUCCESS = "SUCCESS";
    public final static String TRADE_FAIL = "FAIL";
    
    /**
     * 交易类型
     * JSAPI--公众号支付、NATIVE--原生扫码支付、APP--app支付
     */
    public final static String TRADE_TYPE_WAP = "WAP";
    public final static String TRADE_TYPE_NATIVE =  "NATIVE";
    public final static String TRADE_TYPE_APPE =  "APP";
    
    /**
     * 微信交易接口
     */
    //统一下单
    public final static String TRADE_URL_UNIFIEDORDER = "unifiedorder";
    //查询订单
    public final static String TRADE_URL_ORDERQUERY = "orderquery";
    
    /**
     * 订单交易状态
     */
    //支付成功
    public final static String TRADE_STATE_SUCCESS = "SUCCESS";
    //转入退款
    public final static String TRADE_STATE_REFUND = "REFUND";
    //未支付
    public final static String TRADE_STATE_NOTPAY = "NOTPAY";
    //已关闭
    public final static String TRADE_STATE_CLOSED = "CLOSED";
    //已撤销（刷卡支付）
    public final static String TRADE_STATE_REVOKED = "REVOKED";
    //用户支付中
    public final static String TRADE_STATE_USERPAYING = "USERPAYING";
    //支付失败
    public final static String TRADE_STATE_PAYERROR = "PAYERROR";
}
